package kuzha.runtime;

import java.math.BigDecimal;
import java.math.BigInteger;

import kuzha.KuzhaObject;
import kuzha.except.NotYetImplementedException;

public abstract class KzBigNumber extends AbstractValue {
	public static KzBigNumber valueOf(Number num) {
		if (num instanceof BigInteger)
			return KzBigInteger.valueOf((BigInteger)num);
		if (num instanceof BigDecimal)
			return KzBigDecimal.valueOf((BigDecimal)num);
		throw new NumberFormatException();
	}
	
	@Override
	protected KuzhaObject getTraits() {
		// TODO Auto-generated method stub
		throw new NotYetImplementedException();
	}
}
